public  class Duck extends Animal implements IRunable,IFlyable,ISwimable {
    public Duck(String name) {
        super(name);
    }

    @Override
    public void flying() {
        System.out.println(this.name+"正在飞");
    }

    @Override
    public void running() {
        System.out.println(this.name+"正在跑");
    }

    @Override
    public void swiming() {
        System.out.println(this.name+"正在游泳");
    }
}
